import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.time.Month;
import java.util.Date;

public class TestDate {
    public static void main(String[] args) {
        BigDecimal bigDecimal = new BigDecimal("8.88");
        BigDecimal bigDecimal1 = new BigDecimal("1");
          BigDecimal addRet  = bigDecimal.add(bigDecimal1);
          BigDecimal subtractRet = bigDecimal.subtract(bigDecimal1);
        BigDecimal multiplyRet  = bigDecimal.multiply(bigDecimal1);
        System.out.println(multiplyRet);
        System.out.println(subtractRet);
        System.out.println(addRet);

    }
    public static void main7(String[] args) {
        BigDecimal bigDecimal = new BigDecimal("999973287681221");
        //System.out.println();
        BigDecimal bigDecimal1 = new BigDecimal("1");
        System.out.println(bigDecimal.add(bigDecimal1));
    }
    public static void main6(String[] args) {
        LocalDateTime dateTime = LocalDateTime.now();

        LocalDateTime newDatePlus = dateTime.plusDays(1);
        System.out.println("增加1天后的⽇期："+newDatePlus);

        LocalDateTime newDateMinus = dateTime.minusDays(1);
        System.out.println("减少1天后的⽇期："+newDateMinus);
    }
    public static void main5(String[] args) {
        LocalDateTime dateTime = LocalDateTime.now();
        System.out.println("今天是:"+dateTime);
        System.out.println(dateTime.getDayOfWeek().getValue());
        System.out.println(dateTime.getDayOfMonth());
        System.out.println(dateTime.getDayOfYear());
    }
    public static void main4(String[] args) {
        LocalDateTime dateTime = LocalDateTime.now();
        System.out.println("当前时间为：" + dateTime);
        int year = dateTime.getYear();
        System.out.println("年："+year);
        Month month = dateTime.getMonth();
        System.out.println("月："+month.getValue());


    }
    public static void main3(String[] args) {
        LocalDateTime localDateTime = LocalDateTime.parse("2023-05-15T10:30:00");
        System.out.println(localDateTime);
    }
    public static void main2(String[] args) {
        LocalDateTime localDateTime  = LocalDateTime.now();
        System.out.println(localDateTime);
        LocalDateTime localDateTime1 = LocalDateTime.of(10,10,10,10,10);
        System.out.println(localDateTime1);
    }
    public static void main1(String[] args) {
        Date date = new Date();
        System.out.println(date);
    }
}
